﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="caselist.aspx.cs" Inherits="caselist" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="./css/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="./css/themes/icon.css"/>
	<script type="text/javascript" src="./js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="./js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="./js/easyui-lang-zh_CN.js"></script>
	<style type="text/css">
    body,form
    {
    font-family:宋体;
    padding:0px;
    margin:0px;
    border:0;
    background-color:White;	

    }
    .searchResultDiv
    {
    	padding-left:10px;
    	padding-right:10px;

    }
    .menuDiv
    {
    	text-align:right;
    	padding-left:10px;
    	padding-right:10px;
    	}

	</style>

</head>
<script type="text/javascript">
function getParam(paramName)
{
        paramValue = "";
        isFound = false;
         
        if (document.location.search.indexOf("?") == 0 && document.location.search.indexOf("=")>1)
        {
            arrSource = unescape(document.location.search).substring(1,document.location.search.length).split("&");
            i = 0;
            while (i < arrSource.length && !isFound)
            {
                if (arrSource[i].indexOf("=") > 0)
                {
                     if (arrSource[i].split("=")[0].toLowerCase()==paramName.toLowerCase())
                     {
                        paramValue = arrSource[i].split("=")[1];
                        isFound = true;
                     }
                }
                i++;
            }   
        }
   return paramValue;
}

</script>
<script type="text/javascript">
$(function(){

$('#searchResultTable').datagrid({
			<%=EasyUIDataGridIntialData%>
			});
			
		var pager = $('#searchResultTable').datagrid('getPager');
        $(pager).pagination({
            pageList: [10,20,30,50,100,200],
            beforePageText: '第',
            afterPageText: '页    共{pages}页',
            displayMsg: '当前显示 {from} 至 {to} 条记录     共 {total} 条记录'
        });
});


	function OpenCase(Key,ServerPath,ServerFile){
		var OpenDossier= document.all("myCTRL1");
		var rvalue=OpenDossier.OpenDossier(Key,ServerPath,ServerFile);
	}
function Search(paremeters)
{
 $("#searchResultTable").datagrid({url:'caselist_handler.ashx?'+paremeters});
}
function ReSet()
{
 window.location.reload();
}
</script>
<body onResize="ReSet()" >

<form id="form1" runat="server" >
    <div id="bodyDiv" >
    <div class="searchResultDiv"  >
     <span id="tqdbSpan" class="panel-header" style="display:none;padding-top:5px;">&nbsp;</span>
     <table id="searchResultTable"></table>
     <div style="display:none">
<OBJECT ID="myCTRL1"
CLASSID="CLSID:91BFD1C2-294A-4C7D-AD27-E1FCF3CD6B97"
CODEBASE="OpenDossier.CAB#version=2,2,0,35">
</OBJECT></div>
    </div>
    <div class="menuDiv">
    <script type="text/javascript" language="javascript">
     function subitAction1()
     {
       $("#button_ExportExcel").css("display","none" );
       $("#export_again").css("display","" );
       
     }
     function subitAction2()
     {
        $("#button_ExportExcel").css("display","" );
        $("#export_again").css("display","none" );
       
     }
    </script>
       
        <asp:Button ID="button_ExportExcel" runat="server" Text="导出查询结果" OnClientClick="subitAction1();return true;" OnClick="button_ExportExcel_Click"  />
        <input id="export_again" type="button" value="再导出" style="display:none;" onclick="subitAction2();" />
        </div>
    </div>
    </form>
    
</body>
</html>